<template>
  <div class="container">
    <div class="top">
      <div class="top_title">广告设计投放</div>
    </div>
    <div class="type_box">
      <div style="display: flex;flex-direction: column;align-items: center;">
        <img src="@/assets/img/phone.png">
        <div style="font-size: 30px;color: #333;font-weight: 400;margin-top: 30px;margin-bottom: 60px;">手机端
        </div>
        <div class="btn_box">
          <div class="btn" @click="goPage('phone', 0)">
            开屏广告
          </div>
          <div class="btn" style="margin-left: 30px;" @click="goPage('phone', 1)">
            视频广告
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AdvDetails',
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {
    goPage(type, index) {
      console.log(type, '[[[[[]]]]]', index)
      this.$router.push({
        name: 'AdDetail',
        query: {
          typeAD: index
        }
      })
      // this.$router.push({
      //   path: '/adDetail/' + type + '/' + index
      // })
    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  padding: 30px;
}

.container .top {
  font-size: 30px;
  color: #333;
}

.container .type_box {
  display: flex;
  margin-top: 30px;
  justify-content: space-between;
}

.container .type_box>div {
  // background: #10a4aa0d;
  background: rgba(255, 104, 178, 0.05);
  border-radius: 20px;
  flex: 1;
  max-width: 734px;
  min-width: 430px;
  padding: 50px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container .type_box .btn_box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  // margin-left: 20px;
}

.container .type_box .btn_box .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 48px;
  border-radius: 5px;
  background: #FF68B2;
  box-sizing: border-box;
  border: 2px solid #FF68B2;
  font-size: 20px;
  color: #FFFFFF;
  // margin-right: 30px;
}
</style>
